#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_night_clicked()
{

    this->setStyleSheet("background-color:black");
    ui->night->setStyleSheet("background-color:black;color:white");
    ui->light->setStyleSheet("background-color:black;color:white");
}

void Widget::on_light_clicked()
{
    this->setStyleSheet("background-color:white");
    ui->night->setStyleSheet("background-color:white;color:black");
    ui->light->setStyleSheet("background-color:white;color:black");
}

